// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import $ from 'jquery'
import 'bootstrap/dist/js/bootstrap.min'
import { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import vRegion from 'v-region'

Vue.use(BootstrapVue)
Vue.use(BootstrapVueIcons)
Vue.use(vRegion)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
//使页面跳转后定位到顶部
router.afterEach((to,from,next) => {
  document.body.scrollTop =0;
  document.documentElement.scrollTop = 0;
});
